package com.mdc.mansion.api.web.modules.system.web;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mdc.mansion.api.web.common.web.BaseController;
import com.mdc.mansion.common.exception.BusinessException;
import com.mdc.mansion.common.response.Result;
import com.mdc.mansion.common.response.ResultCode;

/**<p>com.mdc.mansion.api.web.modules.system.web.DemoController</p>
 * <p>Title: DemoController</p>
 * <p>Description: TODO</p>
 * <p>Copyright: Copyright © 2010-2014</p>
 * <p>Company: jumei</p>
 * @author xiang.liu
 * @version 1.0
 */
@RequestMapping("${adminPath}/demo")
@Controller
public class DemoController extends BaseController{

    @RequestMapping("/get")  
    public Result get(){
        Result restultResult = new Result(ResultCode.COMMON_SUCCESS);
        Map<String, String> map = new  HashMap<String, String>();
        map.put("successs", "true");
        map.put("name", "222");
        restultResult.setProperty("map", map);
        return restultResult;
    }
}
